//
//  XinCoffeeCell.swift
//  XinGuoSearch
//
//  Created by 李东 on 2024/4/9.
//

import UIKit

class XinCoffeeCell: UITableViewCell {

    @IBOutlet weak var countLabel: UILabel!
    @IBOutlet weak var mgLabel: UILabel!
    @IBOutlet weak var dateTimeLabel: UILabel!
    @IBOutlet weak var coffeeLabel: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    var model: XinCoffeeModel! {
        didSet {
            countLabel.text = "\(model.count)杯"
            mgLabel.text = "\(model.mg)mg"
            dateTimeLabel.text = model.ymd + " " + model.time
            coffeeLabel.text = model.coffee
        }
    }
}
